﻿using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Messaging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VisionAppManager.ViewModel
{
    public class VMStatusBar : ViewModelBase
    {
        private string _status = "Ready";
        public string Status
        {
            get
            {
                return _status;
            }
            set
            {
                Set(ref _status, value);
            }
        }

        public VMStatusBar()
        {
            Messenger.Default.Register<string>(this, (msg) => ReceiveMessage(msg));
        }

        private void ReceiveMessage(string status)
        {
            Status = status;
        }
    }
}
